<?php
/*
 **************************************************************************************************
 *	Define constants
 **************************************************************************************************
*/
define( 'THEMEROOT', get_stylesheet_directory_uri() );
define( 'IMAGES', THEMEROOT . '/images' );

define( 'TEXTDOMAIN', 'prototype' );

/*
 **************************************************************************************************
 *	Include the theme setup function file
 **************************************************************************************************
*/
require( get_template_directory() . '/functions/theme-setup.php' );

/*
 **************************************************************************************************
 *	Include the wordpress hooks function file
 **************************************************************************************************
*/
require( get_template_directory() . '/functions/core-hooks.php' );

/*
 **************************************************************************************************
 *	Include the theme custom functions file
 **************************************************************************************************
*/
require( get_template_directory() . '/functions/theme-custom.php' );

/*
 **************************************************************************************************
 *	Include TGM plugin activation functions file
 **************************************************************************************************
*/
require( get_template_directory() . '/functions/theme-tgm-activation.php' );

/*
 **************************************************************************************************
 *	Include the plugins file
 **************************************************************************************************
*/
// pagenavi
require( get_template_directory() . '/plugins/pagenavi/wp-pagenavi.php' );
// TGM plugin activation
require( get_template_directory() . '/plugins/tgm-plugin-activation/tgm-activation.php' );

/*
 **************************************************************************************************
 *	Theme framework (option tree)
 **************************************************************************************************
*/
// optional : set 'ot_show_pages' filter to false
// this will hide the settings & documentation pages
add_filter( 'ot_show_pages', '__return_false' );

// optional : set 'ot_show_new_layout' filter to false
// this will hide the "New Layout" section on the theme options page
add_filter( 'ot_show_new_layout', '__return_false' );

// required : set 'ot_theme_mode' filter to true.
add_filter( 'ot_theme_mode', '__return_true' );

// required: include option tree.
load_template( trailingslashit( get_template_directory() ) . 'option-tree/ot-loader.php' );

// theme options
load_template( trailingslashit( get_template_directory() ) . 'includes/theme-options.php' );

/*
 **************************************************************************************************
 *	FOR TEST ONLY
 **************************************************************************************************
*/
require( get_template_directory() . '/functions/test.php' );